-@page_title ='注册灰名单账号'
.container
  .row
    .col-md-7.hidden-print.hidden-xs.hidden-sm{style: "text-align:center"}
      .reg-left
        = image_tag @ad_image, class: 'img-responsive'
    .col-md-5
      .reg-right
        %h2 找回密码
        = form_tag user_password_path, method: :put do |f|
          .field
            -#= f.label :mobile
            .form-group
              .input-group{style: "width:100%"}
                -#%label{for: "user_mobile"} 手机号
                .input-group-addon 手机号
                = text_field_tag 'user[mobile]', nil, autofocus: true, class: "form-control", placeholder: "请输入手机号", id: 'user_mobile'
          .field
            -#= f.label :mobile
            .form-group
              -#%label{for: "user_mobile"} 验证码
              .input-group{style: "width:100%"}
                .input-group-addon 验证码
                = text_field_tag 'code', nil, id: 'sms_code', class: 'form-control'
                .input-group-addon#get-sms-code-btn{style:'cursor:pointer;'} 获取验证码
                -#%span.btn.btn-primary#get-sms-code-btn 获取验证码
                =# f.text_field :mobile, autofocus: true, class: "form-control", placeholder: "请输入验证码"
          .field
            -#= f.label :password
            .form-group
              .input-group{style: "width:100%"}
                %label 新的密码
                = password_field_tag 'user[password]', nil, autocomplete: "off", class: "form-control", placeholder: "请输入密码"
                - if @minimum_password_length
                  %em
                    (密码长度最短#{@minimum_password_length}位)
          .actions
            = submit_tag "重置密码"
        %br
        = link_to '登录', new_user_session_path, class: 'btn btn-default'
